###########################################
Replication Materials for "The Drivers of Resemblance in Presidential Regimes: explaining the conversion of pre-electoral coalitions into coalition cabinets"
###########################################

General Commentary:
In this folder, you'll find the materials to replicate the following study:
Couto, Lucas. "The Drivers of Resemblance in Presidential Regimes: explaining the conversion of pre-electoral coalitions into coalition cabinets," published in European Political Science Review.

You'll find the following files here:
- "dpr.csv": Dataset on coalition cabinets derived from pre-election coordination in presidential democracies in Latin America. A detailed explanation for case selection is available in Section 1 of the Supplementary Material. 

- "dpr_codebook.xlsx": Codebook containing information on variables, sources, and additional notes about the dataset. 

- "main.R": R script to reproduce the empirical analysis in the main document. 

- "main_nec_s3.R": R script to graphically display the XY Plot for necessary relations in Section 3 of the Supplementary Material.

- "main_alt_s5.R": R script to reproduce the alternative solutions for the main empirical application in Section 5 of the Supplementary Material.

- "main_xy_s6.R": R script to reproduce the XY Plot for the analysis of sufficient conditions in Section 6 of the Supplementary Material. 

- "main_no_s7.R": R script to reproduce the analysis for the non-Outcome in Section 7 of the Supplementary Material. 

- "main_rt1_s8.R": R script to reproduce the first robustness test in Section 8 of the Supplementary Material based on an alternative coding scheme for case selection.

- "main_rt2_s8.R": R script to reproduce the second robustness test in Section 8 of the Supplementary Material based on the removal of cases from Chile.

- "main_rt3_s8.R": R script to reproduce the third robustness test in Section 8 of the Supplementary Material based on the adoption of different calibration rules.

- "main_rt4_7_s8.R": R script to reproduce the fourth, fifth, sixth, and seventh robustness tests in Section 8 of the Supplementary Material based on different cluster analyses.

- "main_rt8_s8.R": R script to reproduce the eighth and final robustness test in Section 8 of the Supplementary Material based on alternative consistency thresholds for the analysis of sufficient conditions.

###########################################
R sessionInfo()

R version 4.4.3 (2025-02-28 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 26100)

Matrix products: default


locale:
[1] LC_COLLATE=Danish_Denmark.utf8  LC_CTYPE=Danish_Denmark.utf8    LC_MONETARY=Danish_Denmark.utf8 LC_NUMERIC=C                   
[5] LC_TIME=Danish_Denmark.utf8    

time zone: Europe/Copenhagen
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] showtext_0.9-7  showtextdb_3.0  sysfonts_0.8.9  SetMethods_4.0  stargazer_5.2.3 ggrepel_0.9.6   ragg_1.3.3      lubridate_1.9.4 forcats_1.0.0  
[10] stringr_1.5.1   dplyr_1.1.4     purrr_1.0.4     readr_2.1.5     tidyr_1.3.1     tibble_3.2.1    ggplot2_4.0.0   tidyverse_2.0.0 QCA_3.23       
[19] admisc_0.37    

loaded via a namespace (and not attached):
 [1] declared_0.25        gtable_0.3.6         lattice_0.22-6       tzdb_0.4.0           vctrs_0.6.5          tools_4.4.3          generics_0.1.3      
 [8] stats4_4.4.3         flexmix_2.3-20       sandwich_3.1-1       pkgconfig_2.0.3      RColorBrewer_1.1-3   S7_0.2.0             scatterplot3d_0.3-44
[15] lifecycle_1.0.4      compiler_4.4.3       farver_2.1.2         textshaping_1.0.0    httpuv_1.6.15        htmltools_0.5.8.1    Formula_1.2-5       
[22] venn_1.12            later_1.4.1          pillar_1.10.1        betareg_3.2-1        mime_0.12            tidyselect_1.2.1     digest_0.6.37       
[29] stringi_1.8.4        fastmap_1.2.0        grid_4.4.3           cli_3.6.4            magrittr_2.0.3       withr_3.0.2          scales_1.4.0        
[36] promises_1.3.2       timechange_0.3.0     nnet_7.3-20          zoo_1.8-13           modeltools_0.2-23    hms_1.1.3            shiny_1.10.0        
[43] lpSolve_5.6.23       lmtest_0.9-40        rlang_1.1.5          Rcpp_1.0.14          xtable_1.8-4         glue_1.8.0           fmsb_0.7.6          
[50] rstudioapi_0.17.1    R6_2.6.1             systemfonts_1.2.1   

###########################################
For further inquiries, please do not hesitate to contact me at lac@ps.au.dk or lucasalmeidacouto040@gmail.com.